<%@page import="java.util.List"%>
<%@include file="no_banner_header.jsp" %>
<%
    if(customer==null){
        response.sendRedirect("index.jsp");
    }
%>
<div class="content_bar">EDIT YOU ANCILLARIES ACCOUNT</div>
<div class="break_line"></div>
<div class="break_line"></div>
<% if(request.getSession().getAttribute("registerError")!=null){%>
<div class="closable notification error" style="width: 475px;margin-left: 8px;">
    <%
        List error = (List)request.getSession().getAttribute("registerError");
        for(Object x:error){
            out.println(x);
        }
    %>
</div>
<%}%>
<div>
    <form action="../editprofile" method="post">
        <input type="hidden" name="customerID" value="<%=customer!=null?customer.getCustomerID():0%>" />
        <div class="form_label">First Name:</div>
        <div class="form_field">
            <input type="text" class="textboxEffect" id="first_name" name="first_name" size="35" maxlength="100" value="<%=customer!=null?customer.getFirstName():""%>" />
            <span class="style4">*</span>    
        </div>
        <div class="break_line"></div>
        <div class="form_label">Last Name:</div>
        <div class="form_field">
            <input type="text" class="textboxEffect" id="last_name" name="last_name" size="35" maxlength="100" value="<%=customer!=null?customer.getLastName():""%>" />
            <span class="style4">*</span>    
        </div>
        <div class="break_line"></div>
        <div class="form_label">Company:</div>
        <div class="form_field">
            <input type="text" class="textboxEffect" id="company" name="company" size="35" maxlength="100" value="<%=customer!=null?customer.getCompany():""%>" />    
        </div>
        <div class="break_line"></div>
        <div class="form_label">Phone:</div>
        <div class="form_field">
            <input type="text" class="textboxEffect" id="phone" name="phone" size="35" maxlength="100" value="<%=customer!=null?customer.getPhone():""%>" />
            <span class="style4">*</span>    
        </div>
        <div class="break_line"></div>
        <div class="form_label">Address</div>
        <div class="form_field">
            <input type="text" class="textboxEffect" id="address" name="address" size="35" maxlength="100" value="<%=customer!=null?customer.getAddress():""%>" />
            <span class="style4">*</span>    
        </div>
        <div class="break_line"></div>
        <div class="form_label">&nbsp;</div>
        <div class="form_field" style="margin-bottom: 20px;float: left;">          
            <input type="submit" name="edit_profile" value="SAVE PROFILE" class="submit" />
        </div>
    </form>
</div>
<%@include file="footer.jsp" %>